﻿using System;
using System.Collections.Generic;
using System.Text;
using IDAL.RF.Repair;
using Model.RF.Repair;

namespace BLL.RF.Repair
{
    public class RepairCancel : BaseService<RepairCancelInfo>
    {
        private static readonly IRepairCancel dal = DALFactory.DataAccess.CreateRepairCancel();

        public override void SetCurrentRepository()
        {
            CurrentRepository = dal;
        }

        public bool RepairCancel_Add(string productSN, string userID)
        {
            return dal.RepairCancel_Add(productSN, userID);
        }

        public IList<RepairCancelInfo> RepairCancel_GetbySN(string productSN)
        {
            return dal.RepairCancel_GetbySN(productSN);
        }

        public IList<RepairCancelInfo> RepairCancel_GetbyDT(DateTime dt1, DateTime dt2)
        {
            return dal.RepairCancel_GetbyDT(dt1, dt2);
        }
    }
}
